home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / disk-man / mtools-3.000 / mtools-3 / mtools-3.0 / configure < prev    next >
Encoding:
Text File  |  1996-05-08  |  58.6 KB  |  2,110 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.9 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-xdf           support for OS/2 extended density format disks"
  16. ac_help="$ac_help
  17.   --enable-vold          compatibility with Solaris' vold"
  18.  
  19. # Initialize some variables set by options.
  20. # The variables have the same names as the options, with
  21. # dashes changed to underlines.
  22. build=NONE
  23. cache_file=./config.cache
  24. exec_prefix=NONE
  25. host=NONE
  26. no_create=
  27. nonopt=NONE
  28. no_recursion=
  29. prefix=NONE
  30. program_prefix=NONE
  31. program_suffix=NONE
  32. program_transform_name=s,x,x,
  33. silent=
  34. site=
  35. srcdir=
  36. target=NONE
  37. verbose=
  38. x_includes=NONE
  39. x_libraries=NONE
  40. bindir='${exec_prefix}/bin'
  41. sbindir='${exec_prefix}/sbin'
  42. libexecdir='${exec_prefix}/libexec'
  43. datadir='${prefix}/share'
  44. sysconfdir='${prefix}/etc'
  45. sharedstatedir='${prefix}/com'
  46. localstatedir='${prefix}/var'
  47. libdir='${exec_prefix}/lib'
  48. includedir='${prefix}/include'
  49. oldincludedir='/usr/include'
  50. infodir='${prefix}/info'
  51. mandir='${prefix}/man'
  52.  
  53. # Initialize some other variables.
  54. subdirs=
  55. MFLAGS= MAKEFLAGS=
  56.  
  57. ac_prev=
  58. for ac_option
  59. do
  60.  
  61.   # If the previous option needs an argument, assign it.
  62.   if test -n "$ac_prev"; then
  63.     eval "$ac_prev=\$ac_option"
  64.     ac_prev=
  65.     continue
  66.   fi
  67.  
  68.   case "$ac_option" in
  69.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  70.   *) ac_optarg= ;;
  71.   esac
  72.  
  73.   # Accept the important Cygnus configure options, so we can diagnose typos.
  74.  
  75.   case "$ac_option" in
  76.  
  77.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  78.     ac_prev=bindir ;;
  79.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  80.     bindir="$ac_optarg" ;;
  81.  
  82.   -build | --build | --buil | --bui | --bu)
  83.     ac_prev=build ;;
  84.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  85.     build="$ac_optarg" ;;
  86.  
  87.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  88.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  89.     ac_prev=cache_file ;;
  90.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  91.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  92.     cache_file="$ac_optarg" ;;
  93.  
  94.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  95.     ac_prev=datadir ;;
  96.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  97.   | --da=*)
  98.     datadir="$ac_optarg" ;;
  99.  
  100.   -disable-* | --disable-*)
  101.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  102.     # Reject names that are not valid shell variable names.
  103.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  104.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  105.     fi
  106.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  107.     eval "enable_${ac_feature}=no" ;;
  108.  
  109.   -enable-* | --enable-*)
  110.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  111.     # Reject names that are not valid shell variable names.
  112.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  113.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114.     fi
  115.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116.     case "$ac_option" in
  117.       *=*) ;;
  118.       *) ac_optarg=yes ;;
  119.     esac
  120.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  121.  
  122.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  123.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  124.   | --exec | --exe | --ex)
  125.     ac_prev=exec_prefix ;;
  126.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  127.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  128.   | --exec=* | --exe=* | --ex=*)
  129.     exec_prefix="$ac_optarg" ;;
  130.  
  131.   -gas | --gas | --ga | --g)
  132.     # Obsolete; use --with-gas.
  133.     with_gas=yes ;;
  134.  
  135.   -help | --help | --hel | --he)
  136.     # Omit some internal or obsolete options to make the list less imposing.
  137.     # This message is too long to be a string in the A/UX 3.1 sh.
  138.     cat << EOF
  139. Usage: configure [options] [host]
  140. Options: [defaults in brackets after descriptions]
  141. Configuration:
  142.   --cache-file=FILE       cache test results in FILE
  143.   --help                  print this message
  144.   --no-create             do not create output files
  145.   --quiet, --silent       do not print \`checking...' messages
  146.   --version               print the version of autoconf that created configure
  147. Directory and file names:
  148.   --prefix=PREFIX         install architecture-independent files in PREFIX
  149.                           [$ac_default_prefix]
  150.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  151.                           [same as prefix]
  152.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  153.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  154.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  155.   --datadir=DIR           read-only architecture-independent data in DIR
  156.                           [PREFIX/share]
  157.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  158.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  159.                           [PREFIX/com]
  160.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  161.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  162.   --includedir=DIR        C header files in DIR [PREFIX/include]
  163.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  164.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  165.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  166.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  167.   --program-prefix=PREFIX prepend PREFIX to installed program names
  168.   --program-suffix=SUFFIX append SUFFIX to installed program names
  169.   --program-transform-name=PROGRAM
  170.                           run sed PROGRAM on installed program names
  171. EOF
  172.     cat << EOF
  173. Host type:
  174.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  175.   --host=HOST             configure for HOST [guessed]
  176.   --target=TARGET         configure for TARGET [TARGET=HOST]
  177. Features and packages:
  178.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  179.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  180.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  181.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  182.   --x-includes=DIR        X include files are in DIR
  183.   --x-libraries=DIR       X library files are in DIR
  184. EOF
  185.     if test -n "$ac_help"; then
  186.       echo "--enable and --with options recognized:$ac_help"
  187.     fi
  188.     exit 0 ;;
  189.  
  190.   -host | --host | --hos | --ho)
  191.     ac_prev=host ;;
  192.   -host=* | --host=* | --hos=* | --ho=*)
  193.     host="$ac_optarg" ;;
  194.  
  195.   -includedir | --includedir | --includedi | --included | --include \
  196.   | --includ | --inclu | --incl | --inc)
  197.     ac_prev=includedir ;;
  198.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  199.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  200.     includedir="$ac_optarg" ;;
  201.  
  202.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  203.     ac_prev=infodir ;;
  204.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  205.     infodir="$ac_optarg" ;;
  206.  
  207.   -libdir | --libdir | --libdi | --libd)
  208.     ac_prev=libdir ;;
  209.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  210.     libdir="$ac_optarg" ;;
  211.  
  212.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  213.   | --libexe | --libex | --libe)
  214.     ac_prev=libexecdir ;;
  215.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  216.   | --libexe=* | --libex=* | --libe=*)
  217.     libexecdir="$ac_optarg" ;;
  218.  
  219.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  220.   | --localstate | --localstat | --localsta | --localst \
  221.   | --locals | --local | --loca | --loc | --lo)
  222.     ac_prev=localstatedir ;;
  223.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  224.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  225.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  226.     localstatedir="$ac_optarg" ;;
  227.  
  228.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  229.     ac_prev=mandir ;;
  230.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  231.     mandir="$ac_optarg" ;;
  232.  
  233.   -nfp | --nfp | --nf)
  234.     # Obsolete; use --without-fp.
  235.     with_fp=no ;;
  236.  
  237.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  238.   | --no-cr | --no-c)
  239.     no_create=yes ;;
  240.  
  241.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  242.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  243.     no_recursion=yes ;;
  244.  
  245.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  246.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  247.   | --oldin | --oldi | --old | --ol | --o)
  248.     ac_prev=oldincludedir ;;
  249.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  250.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  251.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  252.     oldincludedir="$ac_optarg" ;;
  253.  
  254.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  255.     ac_prev=prefix ;;
  256.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  257.     prefix="$ac_optarg" ;;
  258.  
  259.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  260.   | --program-pre | --program-pr | --program-p)
  261.     ac_prev=program_prefix ;;
  262.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  263.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  264.     program_prefix="$ac_optarg" ;;
  265.  
  266.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  267.   | --program-suf | --program-su | --program-s)
  268.     ac_prev=program_suffix ;;
  269.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  270.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  271.     program_suffix="$ac_optarg" ;;
  272.  
  273.   -program-transform-name | --program-transform-name \
  274.   | --program-transform-nam | --program-transform-na \
  275.   | --program-transform-n | --program-transform- \
  276.   | --program-transform | --program-transfor \
  277.   | --program-transfo | --program-transf \
  278.   | --program-trans | --program-tran \
  279.   | --progr-tra | --program-tr | --program-t)
  280.     ac_prev=program_transform_name ;;
  281.   -program-transform-name=* | --program-transform-name=* \
  282.   | --program-transform-nam=* | --program-transform-na=* \
  283.   | --program-transform-n=* | --program-transform-=* \
  284.   | --program-transform=* | --program-transfor=* \
  285.   | --program-transfo=* | --program-transf=* \
  286.   | --program-trans=* | --program-tran=* \
  287.   | --progr-tra=* | --program-tr=* | --program-t=*)
  288.     program_transform_name="$ac_optarg" ;;
  289.  
  290.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  291.   | -silent | --silent | --silen | --sile | --sil)
  292.     silent=yes ;;
  293.  
  294.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  295.     ac_prev=sbindir ;;
  296.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  297.   | --sbi=* | --sb=*)
  298.     sbindir="$ac_optarg" ;;
  299.  
  300.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  301.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  302.   | --sharedst | --shareds | --shared | --share | --shar \
  303.   | --sha | --sh)
  304.     ac_prev=sharedstatedir ;;
  305.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  306.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  307.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  308.   | --sha=* | --sh=*)
  309.     sharedstatedir="$ac_optarg" ;;
  310.  
  311.   -site | --site | --sit)
  312.     ac_prev=site ;;
  313.   -site=* | --site=* | --sit=*)
  314.     site="$ac_optarg" ;;
  315.  
  316.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  317.     ac_prev=srcdir ;;
  318.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  319.     srcdir="$ac_optarg" ;;
  320.  
  321.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  322.   | --syscon | --sysco | --sysc | --sys | --sy)
  323.     ac_prev=sysconfdir ;;
  324.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  325.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  326.     sysconfdir="$ac_optarg" ;;
  327.  
  328.   -target | --target | --targe | --targ | --tar | --ta | --t)
  329.     ac_prev=target ;;
  330.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  331.     target="$ac_optarg" ;;
  332.  
  333.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  334.     verbose=yes ;;
  335.  
  336.   -version | --version | --versio | --versi | --vers)
  337.     echo "configure generated by autoconf version 2.9"
  338.     exit 0 ;;
  339.  
  340.   -with-* | --with-*)
  341.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  342.     # Reject names that are not valid shell variable names.
  343.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  344.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  345.     fi
  346.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  347.     case "$ac_option" in
  348.       *=*) ;;
  349.       *) ac_optarg=yes ;;
  350.     esac
  351.     eval "with_${ac_package}='$ac_optarg'" ;;
  352.  
  353.   -without-* | --without-*)
  354.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  355.     # Reject names that are not valid shell variable names.
  356.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  357.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  358.     fi
  359.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  360.     eval "with_${ac_package}=no" ;;
  361.  
  362.   --x)
  363.     # Obsolete; use --with-x.
  364.     with_x=yes ;;
  365.  
  366.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  367.   | --x-incl | --x-inc | --x-in | --x-i)
  368.     ac_prev=x_includes ;;
  369.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  370.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  371.     x_includes="$ac_optarg" ;;
  372.  
  373.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  374.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  375.     ac_prev=x_libraries ;;
  376.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  377.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  378.     x_libraries="$ac_optarg" ;;
  379.  
  380.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  381.     ;;
  382.  
  383.   *)
  384.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  385.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  386.     fi
  387.     if test "x$nonopt" != xNONE; then
  388.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  389.     fi
  390.     nonopt="$ac_option"
  391.     ;;
  392.  
  393.   esac
  394. done
  395.  
  396. if test -n "$ac_prev"; then
  397.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  398. fi
  399.  
  400. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  401.  
  402. # File descriptor usage:
  403. # 0 standard input
  404. # 1 file creation
  405. # 2 errors and warnings
  406. # 3 some systems may open it to /dev/tty
  407. # 4 used on the Kubota Titan
  408. # 6 checking for... messages and results
  409. # 5 compiler messages saved in config.log
  410. if test "$silent" = yes; then
  411.   exec 6>/dev/null
  412. else
  413.   exec 6>&1
  414. fi
  415. exec 5>./config.log
  416.  
  417. echo "\
  418. This file contains any messages produced by compilers while
  419. running configure, to aid debugging if configure makes a mistake.
  420. " 1>&5
  421.  
  422. # Strip out --no-create and --no-recursion so they do not pile up.
  423. # Also quote any args containing shell metacharacters.
  424. ac_configure_args=
  425. for ac_arg
  426. do
  427.   case "$ac_arg" in
  428.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  429.   | --no-cr | --no-c) ;;
  430.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  432.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  433.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  434.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  435.   esac
  436. done
  437.  
  438. # NLS nuisances.
  439. # Only set LANG and LC_ALL to C if already set.
  440. # These must not be set unconditionally because not all systems understand
  441. # e.g. LANG=C (notably SCO).
  442. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  443. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  444.  
  445. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  446. rm -rf conftest* confdefs.h
  447. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  448. echo > confdefs.h
  449.  
  450. # A filename unique to this package, relative to the directory that
  451. # configure is in, which we can look for to find out if srcdir is correct.
  452. ac_unique_file=buffer.c
  453.  
  454. # Find the source files, if location was not specified.
  455. if test -z "$srcdir"; then
  456.   ac_srcdir_defaulted=yes
  457.   # Try the directory containing this script, then its parent.
  458.   ac_prog=$0
  459.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  460.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  461.   srcdir=$ac_confdir
  462.   if test ! -r $srcdir/$ac_unique_file; then
  463.     srcdir=..
  464.   fi
  465. else
  466.   ac_srcdir_defaulted=no
  467. fi
  468. if test ! -r $srcdir/$ac_unique_file; then
  469.   if test "$ac_srcdir_defaulted" = yes; then
  470.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  471.   else
  472.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  473.   fi
  474. fi
  475. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  476.  
  477. # Prefer explicitly selected file to automatically selected ones.
  478. if test -z "$CONFIG_SITE"; then
  479.   if test "x$prefix" != xNONE; then
  480.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  481.   else
  482.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  483.   fi
  484. fi
  485. for ac_site_file in $CONFIG_SITE; do
  486.   if test -r "$ac_site_file"; then
  487.     echo "loading site script $ac_site_file"
  488.     . "$ac_site_file"
  489.   fi
  490. done
  491.  
  492. if test -r "$cache_file"; then
  493.   echo "loading cache $cache_file"
  494.   . $cache_file
  495. else
  496.   echo "creating cache $cache_file"
  497.   > $cache_file
  498. fi
  499.  
  500. ac_ext=c
  501. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  502. ac_cpp='$CPP $CPPFLAGS'
  503. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  504. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  505.  
  506. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  507.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  508.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  509.     ac_n= ac_c='
  510. ' ac_t='    '
  511.   else
  512.     ac_n=-n ac_c= ac_t=
  513.   fi
  514. else
  515.   ac_n= ac_c='\c' ac_t=
  516. fi
  517.  
  518.  
  519.  
  520.  
  521.  
  522. # Extract the first word of "gcc", so it can be a program name with args.
  523. set dummy gcc; ac_word=$2
  524. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  525. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  526.   echo $ac_n "(cached) $ac_c" 1>&6
  527. else
  528.   if test -n "$CC"; then
  529.   ac_cv_prog_CC="$CC" # Let the user override the test.
  530. else
  531.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  532.   for ac_dir in $PATH; do
  533.     test -z "$ac_dir" && ac_dir=.
  534.     if test -f $ac_dir/$ac_word; then
  535.       ac_cv_prog_CC="gcc"
  536.       break
  537.     fi
  538.   done
  539.   IFS="$ac_save_ifs"
  540. fi
  541. fi
  542. CC="$ac_cv_prog_CC"
  543. if test -n "$CC"; then
  544.   echo "$ac_t""$CC" 1>&6
  545. else
  546.   echo "$ac_t""no" 1>&6
  547. fi
  548.  
  549. if test -z "$CC"; then
  550.   # Extract the first word of "cc", so it can be a program name with args.
  551. set dummy cc; ac_word=$2
  552. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  553. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  554.   echo $ac_n "(cached) $ac_c" 1>&6
  555. else
  556.   if test -n "$CC"; then
  557.   ac_cv_prog_CC="$CC" # Let the user override the test.
  558. else
  559.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  560.   ac_prog_rejected=no
  561.   for ac_dir in $PATH; do
  562.     test -z "$ac_dir" && ac_dir=.
  563.     if test -f $ac_dir/$ac_word; then
  564.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  565.         ac_prog_rejected=yes
  566.     continue
  567.       fi
  568.       ac_cv_prog_CC="cc"
  569.       break
  570.     fi
  571.   done
  572.   IFS="$ac_save_ifs"
  573. if test $ac_prog_rejected = yes; then
  574.   # We found a bogon in the path, so make sure we never use it.
  575.   set dummy $ac_cv_prog_CC
  576.   shift
  577.   if test $# -gt 0; then
  578.     # We chose a different compiler from the bogus one.
  579.     # However, it has the same basename, so the bogon will be chosen
  580.     # first if we set CC to just the basename; use the full file name.
  581.     shift
  582.     set dummy "$ac_dir/$ac_word" "$@"
  583.     shift
  584.     ac_cv_prog_CC="$@"
  585.   fi
  586. fi
  587. fi
  588. fi
  589. CC="$ac_cv_prog_CC"
  590. if test -n "$CC"; then
  591.   echo "$ac_t""$CC" 1>&6
  592. else
  593.   echo "$ac_t""no" 1>&6
  594. fi
  595.  
  596.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  597. fi
  598.  
  599. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  600. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  601.   echo $ac_n "(cached) $ac_c" 1>&6
  602. else
  603.   cat > conftest.c <<EOF
  604. #ifdef __GNUC__
  605.   yes;
  606. #endif
  607. EOF
  608. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  609.   ac_cv_prog_gcc=yes
  610. else
  611.   ac_cv_prog_gcc=no
  612. fi
  613. fi
  614.  
  615. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  616. if test $ac_cv_prog_gcc = yes; then
  617.   GCC=yes
  618.   if test "${CFLAGS+set}" != set; then
  619.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  620. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  621.   echo $ac_n "(cached) $ac_c" 1>&6
  622. else
  623.   echo 'void f(){}' > conftest.c
  624. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  625.   ac_cv_prog_gcc_g=yes
  626. else
  627.   ac_cv_prog_gcc_g=no
  628. fi
  629. rm -f conftest*
  630.  
  631. fi
  632.  
  633. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  634.     if test $ac_cv_prog_gcc_g = yes; then
  635.       CFLAGS="-g -O"
  636.     else
  637.       CFLAGS="-O"
  638.     fi
  639.   fi
  640. else
  641.   GCC=
  642.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  643. fi
  644.  
  645. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  646. # On Suns, sometimes $CPP names a directory.
  647. if test -n "$CPP" && test -d "$CPP"; then
  648.   CPP=
  649. fi
  650. if test -z "$CPP"; then
  651. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  652.   echo $ac_n "(cached) $ac_c" 1>&6
  653. else
  654.     # This must be in double quotes, not single quotes, because CPP may get
  655.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  656.   CPP="${CC-cc} -E"
  657.   # On the NeXT, cc -E runs the code through the compiler's parser,
  658.   # not just through cpp.
  659.   cat > conftest.$ac_ext <<EOF
  660. #line 661 "configure"
  661. #include "confdefs.h"
  662. #include <assert.h>
  663. Syntax Error
  664. EOF
  665. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  666. { (eval echo configure:667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  667. ac_err=`grep -v '^ *+' conftest.out`
  668. if test -z "$ac_err"; then
  669.   :
  670. else
  671.   echo "$ac_err" >&5
  672.   rm -rf conftest*
  673.   CPP="${CC-cc} -E -traditional-cpp"
  674.   cat > conftest.$ac_ext <<EOF
  675. #line 676 "configure"
  676. #include "confdefs.h"
  677. #include <assert.h>
  678. Syntax Error
  679. EOF
  680. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  681. { (eval echo configure:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  682. ac_err=`grep -v '^ *+' conftest.out`
  683. if test -z "$ac_err"; then
  684.   :
  685. else
  686.   echo "$ac_err" >&5
  687.   rm -rf conftest*
  688.   CPP=/lib/cpp
  689. fi
  690. rm -f conftest*
  691. fi
  692. rm -f conftest*
  693.   ac_cv_prog_CPP="$CPP"
  694. fi
  695.   CPP="$ac_cv_prog_CPP"
  696. else
  697.   ac_cv_prog_CPP="$CPP"
  698. fi
  699. echo "$ac_t""$CPP" 1>&6
  700.  
  701. if test $ac_cv_prog_gcc = yes; then
  702.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  703. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  704.   echo $ac_n "(cached) $ac_c" 1>&6
  705. else
  706.     ac_pattern="Autoconf.*'x'"
  707.   cat > conftest.$ac_ext <<EOF
  708. #line 709 "configure"
  709. #include "confdefs.h"
  710. #include <sgtty.h>
  711. Autoconf TIOCGETP
  712. EOF
  713. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  714.   egrep "$ac_pattern" >/dev/null 2>&1; then
  715.   rm -rf conftest*
  716.   ac_cv_prog_gcc_traditional=yes
  717. else
  718.   rm -rf conftest*
  719.   ac_cv_prog_gcc_traditional=no
  720. fi
  721. rm -f conftest*
  722.  
  723.  
  724.   if test $ac_cv_prog_gcc_traditional = no; then
  725.     cat > conftest.$ac_ext <<EOF
  726. #line 727 "configure"
  727. #include "confdefs.h"
  728. #include <termio.h>
  729. Autoconf TCGETA
  730. EOF
  731. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  732.   egrep "$ac_pattern" >/dev/null 2>&1; then
  733.   rm -rf conftest*
  734.   ac_cv_prog_gcc_traditional=yes
  735. fi
  736. rm -f conftest*
  737.  
  738.   fi
  739. fi
  740.  
  741. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  742.   if test $ac_cv_prog_gcc_traditional = yes; then
  743.     CC="$CC -traditional"
  744.   fi
  745. fi
  746.  
  747. ac_aux_dir=
  748. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  749.   if test -f $ac_dir/install-sh; then
  750.     ac_aux_dir=$ac_dir
  751.     ac_install_sh="$ac_aux_dir/install-sh -c"
  752.     break
  753.   elif test -f $ac_dir/install.sh; then
  754.     ac_aux_dir=$ac_dir
  755.     ac_install_sh="$ac_aux_dir/install.sh -c"
  756.     break
  757.   fi
  758. done
  759. if test -z "$ac_aux_dir"; then
  760.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  761. fi
  762. ac_config_guess=$ac_aux_dir/config.guess
  763. ac_config_sub=$ac_aux_dir/config.sub
  764. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  765.  
  766. # Find a good install program.  We prefer a C program (faster),
  767. # so one script is as good as another.  But avoid the broken or
  768. # incompatible versions:
  769. # SysV /etc/install, /usr/sbin/install
  770. # SunOS /usr/etc/install
  771. # IRIX /sbin/install
  772. # AIX /bin/install
  773. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  774. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  775. # ./install, which can be erroneously created by make from ./install.sh.
  776. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  777. if test -z "$INSTALL"; then
  778. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  779.   echo $ac_n "(cached) $ac_c" 1>&6
  780. else
  781.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  782.   for ac_dir in $PATH; do
  783.     # Account for people who put trailing slashes in PATH elements.
  784.     case "$ac_dir/" in
  785.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  786.     *)
  787.       # OSF1 and SCO ODT 3.0 have their own names for install.
  788.       for ac_prog in ginstall installbsd scoinst install; do
  789.         if test -f $ac_dir/$ac_prog; then
  790.       if test $ac_prog = install &&
  791.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  792.         # AIX install.  It has an incompatible calling convention.
  793.         # OSF/1 installbsd also uses dspmsg, but is usable.
  794.         :
  795.       else
  796.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  797.         break 2
  798.       fi
  799.     fi
  800.       done
  801.       ;;
  802.     esac
  803.   done
  804.   IFS="$ac_save_ifs"
  805.  
  806. fi
  807.   if test "${ac_cv_path_install+set}" = set; then
  808.     INSTALL="$ac_cv_path_install"
  809.   else
  810.     # As a last resort, use the slow shell script.  We don't cache a
  811.     # path for INSTALL within a source directory, because that will
  812.     # break other packages using the cache if that directory is
  813.     # removed, or if the path is relative.
  814.     INSTALL="$ac_install_sh"
  815.   fi
  816. fi
  817. echo "$ac_t""$INSTALL" 1>&6
  818.  
  819. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  820. # It thinks the first close brace ends the variable substitution.
  821. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  822.  
  823. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  824.  
  825. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  826. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  827.   echo $ac_n "(cached) $ac_c" 1>&6
  828. else
  829.   rm -f conftestdata
  830. if ln -s X conftestdata 2>/dev/null
  831. then
  832.   rm -f conftestdata
  833.   ac_cv_prog_LN_S="ln -s"
  834. else
  835.   ac_cv_prog_LN_S=ln
  836. fi
  837. fi
  838. LN_S="$ac_cv_prog_LN_S"
  839. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  840.   echo "$ac_t""yes" 1>&6
  841. else
  842.   echo "$ac_t""no" 1>&6
  843. fi
  844.  
  845.  
  846. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  847. cat > conftest.$ac_ext <<EOF
  848. #line 849 "configure"
  849. #include "confdefs.h"
  850. #ifdef _AIX
  851.   yes
  852. #endif
  853.  
  854. EOF
  855. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  856.   egrep "yes" >/dev/null 2>&1; then
  857.   rm -rf conftest*
  858.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  859. #define _ALL_SOURCE 1
  860. EOF
  861.  
  862. else
  863.   rm -rf conftest*
  864.   echo "$ac_t""no" 1>&6
  865. fi
  866. rm -f conftest*
  867.  
  868.  
  869. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  870. if test -d /etc/conf/kconfig.d &&
  871.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  872. then
  873.   echo "$ac_t""yes" 1>&6
  874.   ISC=yes # If later tests want to check for ISC.
  875.   cat >> confdefs.h <<\EOF
  876. #define _POSIX_SOURCE 1
  877. EOF
  878.  
  879.   if test "$GCC" = yes; then
  880.     CC="$CC -posix"
  881.   else
  882.     CC="$CC -Xp"
  883.   fi
  884. else
  885.   echo "$ac_t""no" 1>&6
  886.   ISC=
  887. fi
  888.  
  889. ac_safe=`echo "minix/config.h" | tr './' '__' | sed 's/-/_/g' `
  890. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  891. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  892.   echo $ac_n "(cached) $ac_c" 1>&6
  893. else
  894.   cat > conftest.$ac_ext <<EOF
  895. #line 896 "configure"
  896. #include "confdefs.h"
  897. #include <minix/config.h>
  898. EOF
  899. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  900. { (eval echo configure:901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  901. ac_err=`grep -v '^ *+' conftest.out`
  902. if test -z "$ac_err"; then
  903.   rm -rf conftest*
  904.   eval "ac_cv_header_$ac_safe=yes"
  905. else
  906.   echo "$ac_err" >&5
  907.   rm -rf conftest*
  908.   eval "ac_cv_header_$ac_safe=no"
  909. fi
  910. rm -f conftest*
  911. fi
  912. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  913.   echo "$ac_t""yes" 1>&6
  914.   MINIX=yes
  915. else
  916.   echo "$ac_t""no" 1>&6
  917. MINIX=
  918. fi
  919.  
  920. if test "$MINIX" = yes; then
  921.   cat >> confdefs.h <<\EOF
  922. #define _POSIX_SOURCE 1
  923. EOF
  924.  
  925.   cat >> confdefs.h <<\EOF
  926. #define _POSIX_1_SOURCE 2
  927. EOF
  928.  
  929.   cat >> confdefs.h <<\EOF
  930. #define _MINIX 1
  931. EOF
  932.  
  933. fi
  934.  
  935.  
  936. # Do some error checking and defaulting for the host and target type.
  937. # The inputs are:
  938. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  939. #
  940. # The rules are:
  941. # 1. You are not allowed to specify --host, --target, and nonopt at the
  942. #    same time.
  943. # 2. Host defaults to nonopt.
  944. # 3. If nonopt is not specified, then host defaults to the current host,
  945. #    as determined by config.guess.
  946. # 4. Target and build default to nonopt.
  947. # 5. If nonopt is not specified, then target and build default to host.
  948.  
  949. # The aliases save the names the user supplied, while $host etc.
  950. # will get canonicalized.
  951. case $host---$target---$nonopt in
  952. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  953. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  954. esac
  955.  
  956.  
  957. # Make sure we can run config.sub.
  958. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  959. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  960. fi
  961.  
  962. echo $ac_n "checking host system type""... $ac_c" 1>&6
  963.  
  964. host_alias=$host
  965. case "$host_alias" in
  966. NONE)
  967.   case $nonopt in
  968.   NONE)
  969.     if host_alias=`$ac_config_guess`; then :
  970.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  971.     fi ;;
  972.   *) host_alias=$nonopt ;;
  973.   esac ;;
  974. esac
  975.  
  976. host=`$ac_config_sub $host_alias`
  977. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  978. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  979. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  980. echo "$ac_t""$host" 1>&6
  981.  
  982. echo $ac_n "checking target system type""... $ac_c" 1>&6
  983.  
  984. target_alias=$target
  985. case "$target_alias" in
  986. NONE)
  987.   case $nonopt in
  988.   NONE) target_alias=$host_alias ;;
  989.   *) target_alias=$nonopt ;;
  990.   esac ;;
  991. esac
  992.  
  993. target=`$ac_config_sub $target_alias`
  994. target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  995. target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  996. target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  997. echo "$ac_t""$target" 1>&6
  998.  
  999. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1000.  
  1001. build_alias=$build
  1002. case "$build_alias" in
  1003. NONE)
  1004.   case $nonopt in
  1005.   NONE) build_alias=$host_alias ;;
  1006.   *) build_alias=$nonopt ;;
  1007.   esac ;;
  1008. esac
  1009.  
  1010. build=`$ac_config_sub $build_alias`
  1011. build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  1012. build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  1013. build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  1014. echo "$ac_t""$build" 1>&6
  1015.  
  1016. test "$host_alias" != "$target_alias" &&
  1017.   test "$program_prefix$program_suffix$program_transform_name" = \
  1018.     NONENONEs,x,x, &&
  1019.   program_prefix=${target_alias}-
  1020.  
  1021.  
  1022. # Check whether --enable-xdf or --disable-xdf was given.
  1023. if test "${enable_xdf+set}" = set; then
  1024.   enableval="$enable_xdf"
  1025.   if test x$enableval = xyes; then
  1026.   cat >> confdefs.h <<\EOF
  1027. #define USE_XDF 1
  1028. EOF
  1029.  
  1030. fi
  1031. else
  1032.   cat >> confdefs.h <<\EOF
  1033. #define USE_XDF 1
  1034. EOF
  1035.  
  1036. fi
  1037.  
  1038.  
  1039.  
  1040. # Check whether --enable-vold or --disable-vold was given.
  1041. if test "${enable_vold+set}" = set; then
  1042.   enableval="$enable_vold"
  1043.   if test x$enableval = xyes; then
  1044.   cat >> confdefs.h <<\EOF
  1045. #define USING_VOLD 1
  1046. EOF
  1047.  
  1048. fi
  1049. fi
  1050.  
  1051.  
  1052.  
  1053. echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  1054. ac_lib_var=`echo sun_getpwnam | tr '.-/+' '___p'`
  1055. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1056.   echo $ac_n "(cached) $ac_c" 1>&6
  1057. else
  1058.   ac_save_LIBS="$LIBS"
  1059. LIBS="-lsun  $LIBS"
  1060. cat > conftest.$ac_ext <<EOF
  1061. #line 1062 "configure"
  1062. #include "confdefs.h"
  1063. /* Override any gcc2 internal prototype to avoid an error.  */
  1064. char getpwnam();
  1065.  
  1066. int main() { return 0; }
  1067. int t() {
  1068. getpwnam()
  1069. ; return 0; }
  1070. EOF
  1071. if { (eval echo configure:1072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1072.   rm -rf conftest*
  1073.   eval "ac_cv_lib_$ac_lib_var=yes"
  1074. else
  1075.   rm -rf conftest*
  1076.   eval "ac_cv_lib_$ac_lib_var=no"
  1077. fi
  1078. rm -f conftest*
  1079. LIBS="$ac_save_LIBS"
  1080.  
  1081. fi
  1082. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1083.   echo "$ac_t""yes" 1>&6
  1084.     ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1085.   cat >> confdefs.h <<EOF
  1086. #define $ac_tr_lib 1
  1087. EOF
  1088.  
  1089.   LIBS="-lsun $LIBS"
  1090.  
  1091. else
  1092.   echo "$ac_t""no" 1>&6
  1093. fi
  1094.  
  1095.  
  1096. # If we cannot run a trivial program, we must be cross compiling.
  1097. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1098. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1099.   echo $ac_n "(cached) $ac_c" 1>&6
  1100. else
  1101.   if test "$cross_compiling" = yes; then
  1102.   ac_cv_c_cross=yes
  1103. else
  1104. cat > conftest.$ac_ext <<EOF
  1105. #line 1106 "configure"
  1106. #include "confdefs.h"
  1107. main(){return(0);}
  1108. EOF
  1109. { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1110. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1111.   ac_cv_c_cross=no
  1112. else
  1113.   ac_cv_c_cross=yes
  1114. fi
  1115. fi
  1116. rm -fr conftest*
  1117. fi
  1118.  
  1119. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1120. cross_compiling=$ac_cv_c_cross
  1121.  
  1122. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1123. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1124.   echo $ac_n "(cached) $ac_c" 1>&6
  1125. else
  1126.   cat > conftest.$ac_ext <<EOF
  1127. #line 1128 "configure"
  1128. #include "confdefs.h"
  1129. #include <stdlib.h>
  1130. #include <stdarg.h>
  1131. #include <string.h>
  1132. #include <float.h>
  1133. EOF
  1134. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1135. { (eval echo configure:1136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1136. ac_err=`grep -v '^ *+' conftest.out`
  1137. if test -z "$ac_err"; then
  1138.   rm -rf conftest*
  1139.   ac_cv_header_stdc=yes
  1140. else
  1141.   echo "$ac_err" >&5
  1142.   rm -rf conftest*
  1143.   ac_cv_header_stdc=no
  1144. fi
  1145. rm -f conftest*
  1146.  
  1147. if test $ac_cv_header_stdc = yes; then
  1148.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1149. cat > conftest.$ac_ext <<EOF
  1150. #line 1151 "configure"
  1151. #include "confdefs.h"
  1152. #include <string.h>
  1153. EOF
  1154. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1155.   egrep "memchr" >/dev/null 2>&1; then
  1156.   :
  1157. else
  1158.   rm -rf conftest*
  1159.   ac_cv_header_stdc=no
  1160. fi
  1161. rm -f conftest*
  1162.  
  1163. fi
  1164.  
  1165. if test $ac_cv_header_stdc = yes; then
  1166.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1167. cat > conftest.$ac_ext <<EOF
  1168. #line 1169 "configure"
  1169. #include "confdefs.h"
  1170. #include <stdlib.h>
  1171. EOF
  1172. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1173.   egrep "free" >/dev/null 2>&1; then
  1174.   :
  1175. else
  1176.   rm -rf conftest*
  1177.   ac_cv_header_stdc=no
  1178. fi
  1179. rm -f conftest*
  1180.  
  1181. fi
  1182.  
  1183. if test $ac_cv_header_stdc = yes; then
  1184.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1185. if test "$cross_compiling" = yes; then
  1186.   :
  1187. else
  1188. cat > conftest.$ac_ext <<EOF
  1189. #line 1190 "configure"
  1190. #include "confdefs.h"
  1191. #include <ctype.h>
  1192. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1193. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1194. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1195. int main () { int i; for (i = 0; i < 256; i++)
  1196. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1197. exit (0); }
  1198.  
  1199. EOF
  1200. { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1201. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1202.   :
  1203. else
  1204.   ac_cv_header_stdc=no
  1205. fi
  1206. fi
  1207. rm -fr conftest*
  1208. fi
  1209. fi
  1210.  
  1211. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1212. if test $ac_cv_header_stdc = yes; then
  1213.   cat >> confdefs.h <<\EOF
  1214. #define STDC_HEADERS 1
  1215. EOF
  1216.  
  1217. fi
  1218.  
  1219. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1220. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1221.   echo $ac_n "(cached) $ac_c" 1>&6
  1222. else
  1223.   cat > conftest.$ac_ext <<EOF
  1224. #line 1225 "configure"
  1225. #include "confdefs.h"
  1226. #include <sys/types.h>
  1227. #include <sys/wait.h>
  1228. #ifndef WEXITSTATUS
  1229. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1230. #endif
  1231. #ifndef WIFEXITED
  1232. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1233. #endif
  1234. int main() { return 0; }
  1235. int t() {
  1236. int s;
  1237. wait (&s);
  1238. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1239. ; return 0; }
  1240. EOF
  1241. if { (eval echo configure:1242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1242.   rm -rf conftest*
  1243.   ac_cv_header_sys_wait_h=yes
  1244. else
  1245.   rm -rf conftest*
  1246.   ac_cv_header_sys_wait_h=no
  1247. fi
  1248. rm -f conftest*
  1249.  
  1250. fi
  1251.  
  1252. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1253. if test $ac_cv_header_sys_wait_h = yes; then
  1254.   cat >> confdefs.h <<\EOF
  1255. #define HAVE_SYS_WAIT_H 1
  1256. EOF
  1257.  
  1258. fi
  1259.  
  1260. for ac_hdr in getopt.h sys/stat.h stdlib.h unistd.h \
  1261. fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \
  1262. sys/param.h memory.h malloc.h sys/signal.h utime.h getopt
  1263. do
  1264. ac_safe=`echo "$ac_hdr" | tr './' '__' | sed 's/-/_/g' `
  1265. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1266. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1267.   echo $ac_n "(cached) $ac_c" 1>&6
  1268. else
  1269.   cat > conftest.$ac_ext <<EOF
  1270. #line 1271 "configure"
  1271. #include "confdefs.h"
  1272. #include <$ac_hdr>
  1273. EOF
  1274. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1275. { (eval echo configure:1276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1276. ac_err=`grep -v '^ *+' conftest.out`
  1277. if test -z "$ac_err"; then
  1278.   rm -rf conftest*
  1279.   eval "ac_cv_header_$ac_safe=yes"
  1280. else
  1281.   echo "$ac_err" >&5
  1282.   rm -rf conftest*
  1283.   eval "ac_cv_header_$ac_safe=no"
  1284. fi
  1285. rm -f conftest*
  1286. fi
  1287. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1288.   echo "$ac_t""yes" 1>&6
  1289.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ__' | sed 's/-/_/g'`
  1290.   cat >> confdefs.h <<EOF
  1291. #define $ac_tr_hdr 1
  1292. EOF
  1293.  
  1294. else
  1295.   echo "$ac_t""no" 1>&6
  1296. fi
  1297. done
  1298.  
  1299. for ac_hdr in termios.h sys/termios.h termio.h sys/termio.h
  1300. do
  1301. ac_safe=`echo "$ac_hdr" | tr './' '__' | sed 's/-/_/g' `
  1302. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1303. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1304.   echo $ac_n "(cached) $ac_c" 1>&6
  1305. else
  1306.   cat > conftest.$ac_ext <<EOF
  1307. #line 1308 "configure"
  1308. #include "confdefs.h"
  1309. #include <$ac_hdr>
  1310. EOF
  1311. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1312. { (eval echo configure:1313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1313. ac_err=`grep -v '^ *+' conftest.out`
  1314. if test -z "$ac_err"; then
  1315.   rm -rf conftest*
  1316.   eval "ac_cv_header_$ac_safe=yes"
  1317. else
  1318.   echo "$ac_err" >&5
  1319.   rm -rf conftest*
  1320.   eval "ac_cv_header_$ac_safe=no"
  1321. fi
  1322. rm -f conftest*
  1323. fi
  1324. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1325.   echo "$ac_t""yes" 1>&6
  1326.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ__' | sed 's/-/_/g'`
  1327.   cat >> confdefs.h <<EOF
  1328. #define $ac_tr_hdr 1
  1329. EOF
  1330.  break
  1331. else
  1332.   echo "$ac_t""no" 1>&6
  1333. fi
  1334. done
  1335.  
  1336.  
  1337. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1338. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1339.   echo $ac_n "(cached) $ac_c" 1>&6
  1340. else
  1341.   cat > conftest.$ac_ext <<EOF
  1342. #line 1343 "configure"
  1343. #include "confdefs.h"
  1344.  
  1345. int main() { return 0; }
  1346. int t() {
  1347.  
  1348. /* Ultrix mips cc rejects this.  */
  1349. typedef int charset[2]; const charset x;
  1350. /* SunOS 4.1.1 cc rejects this.  */
  1351. char const *const *ccp;
  1352. char **p;
  1353. /* NEC SVR4.0.2 mips cc rejects this.  */
  1354. struct point {int x, y;};
  1355. static struct point const zero = {0,0};
  1356. /* AIX XL C 1.02.0.0 rejects this.
  1357.    It does not let you subtract one const X* pointer from another in an arm
  1358.    of an if-expression whose if-part is not a constant expression */
  1359. const char *g = "string";
  1360. ccp = &g + (g ? g-g : 0);
  1361. /* HPUX 7.0 cc rejects these. */
  1362. ++ccp;
  1363. p = (char**) ccp;
  1364. ccp = (char const *const *) p;
  1365. { /* SCO 3.2v4 cc rejects this.  */
  1366.   char *t;
  1367.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1368.  
  1369.   *t++ = 0;
  1370. }
  1371. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1372.   int x[] = {25, 17};
  1373.   const int *foo = &x[0];
  1374.   ++foo;
  1375. }
  1376. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1377.   typedef const int *iptr;
  1378.   iptr p = 0;
  1379.   ++p;
  1380. }
  1381. { /* AIX XL C 1.02.0.0 rejects this saying
  1382.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1383.   struct s { int j; const int *ap[3]; };
  1384.   struct s *b; b->j = 5;
  1385. }
  1386. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1387.   const int foo = 10;
  1388. }
  1389.  
  1390. ; return 0; }
  1391. EOF
  1392. if { (eval echo configure:1393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1393.   rm -rf conftest*
  1394.   ac_cv_c_const=yes
  1395. else
  1396.   rm -rf conftest*
  1397.   ac_cv_c_const=no
  1398. fi
  1399. rm -f conftest*
  1400.  
  1401. fi
  1402.  
  1403. echo "$ac_t""$ac_cv_c_const" 1>&6
  1404. if test $ac_cv_c_const = no; then
  1405.   cat >> confdefs.h <<\EOF
  1406. #define const 
  1407. EOF
  1408.  
  1409. fi
  1410.  
  1411. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1412. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1413.   echo $ac_n "(cached) $ac_c" 1>&6
  1414. else
  1415.   ac_cv_c_inline=no
  1416. for ac_kw in inline __inline__ __inline; do
  1417.   cat > conftest.$ac_ext <<EOF
  1418. #line 1419 "configure"
  1419. #include "confdefs.h"
  1420.  
  1421. int main() { return 0; }
  1422. int t() {
  1423. } $ac_kw foo() {
  1424. ; return 0; }
  1425. EOF
  1426. if { (eval echo configure:1427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1427.   rm -rf conftest*
  1428.   ac_cv_c_inline=$ac_kw; break
  1429. fi
  1430. rm -f conftest*
  1431.  
  1432. done
  1433.  
  1434. fi
  1435.  
  1436. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1437. case "$ac_cv_c_inline" in
  1438.   inline | yes) ;;
  1439.   no) cat >> confdefs.h <<\EOF
  1440. #define inline 
  1441. EOF
  1442.  ;;
  1443.   *)  cat >> confdefs.h <<EOF
  1444. #define inline $ac_cv_c_inline
  1445. EOF
  1446.  ;;
  1447. esac
  1448.  
  1449. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1450. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1451.   echo $ac_n "(cached) $ac_c" 1>&6
  1452. else
  1453.   cat > conftest.$ac_ext <<EOF
  1454. #line 1455 "configure"
  1455. #include "confdefs.h"
  1456. #include <sys/types.h>
  1457. #if STDC_HEADERS
  1458. #include <stdlib.h>
  1459. #endif
  1460. EOF
  1461. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1462.   egrep "size_t" >/dev/null 2>&1; then
  1463.   rm -rf conftest*
  1464.   ac_cv_type_size_t=yes
  1465. else
  1466.   rm -rf conftest*
  1467.   ac_cv_type_size_t=no
  1468. fi
  1469. rm -f conftest*
  1470.  
  1471. fi
  1472. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1473. if test $ac_cv_type_size_t = no; then
  1474.   cat >> confdefs.h <<\EOF
  1475. #define size_t unsigned
  1476. EOF
  1477.  
  1478. fi
  1479.  
  1480. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1481. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1482.   echo $ac_n "(cached) $ac_c" 1>&6
  1483. else
  1484.   cat > conftest.$ac_ext <<EOF
  1485. #line 1486 "configure"
  1486. #include "confdefs.h"
  1487. #include <sys/types.h>
  1488. #include <sys/time.h>
  1489. #include <time.h>
  1490. int main() { return 0; }
  1491. int t() {
  1492. struct tm *tp;
  1493. ; return 0; }
  1494. EOF
  1495. if { (eval echo configure:1496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1496.   rm -rf conftest*
  1497.   ac_cv_header_time=yes
  1498. else
  1499.   rm -rf conftest*
  1500.   ac_cv_header_time=no
  1501. fi
  1502. rm -f conftest*
  1503.  
  1504. fi
  1505.  
  1506. echo "$ac_t""$ac_cv_header_time" 1>&6
  1507. if test $ac_cv_header_time = yes; then
  1508.   cat >> confdefs.h <<\EOF
  1509. #define TIME_WITH_SYS_TIME 1
  1510. EOF
  1511.  
  1512. fi
  1513.  
  1514. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1515. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1516.   echo $ac_n "(cached) $ac_c" 1>&6
  1517. else
  1518.   cat > conftest.$ac_ext <<EOF
  1519. #line 1520 "configure"
  1520. #include "confdefs.h"
  1521. #include <sys/types.h>
  1522. #include <time.h>
  1523. int main() { return 0; }
  1524. int t() {
  1525. struct tm *tp; tp->tm_sec;
  1526. ; return 0; }
  1527. EOF
  1528. if { (eval echo configure:1529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1529.   rm -rf conftest*
  1530.   ac_cv_struct_tm=time.h
  1531. else
  1532.   rm -rf conftest*
  1533.   ac_cv_struct_tm=sys/time.h
  1534. fi
  1535. rm -f conftest*
  1536.  
  1537. fi
  1538.  
  1539. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1540. if test $ac_cv_struct_tm = sys/time.h; then
  1541.   cat >> confdefs.h <<\EOF
  1542. #define TM_IN_SYS_TIME 1
  1543. EOF
  1544.  
  1545. fi
  1546.  
  1547.  
  1548. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1549. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1550.   echo $ac_n "(cached) $ac_c" 1>&6
  1551. else
  1552.   cat > conftest.$ac_ext <<EOF
  1553. #line 1554 "configure"
  1554. #include "confdefs.h"
  1555. #include <sys/types.h>
  1556. #include <signal.h>
  1557. #ifdef signal
  1558. #undef signal
  1559. #endif
  1560. #ifdef __cplusplus
  1561. extern "C" void (*signal (int, void (*)(int)))(int);
  1562. #else
  1563. void (*signal ()) ();
  1564. #endif
  1565.  
  1566. int main() { return 0; }
  1567. int t() {
  1568. int i;
  1569. ; return 0; }
  1570. EOF
  1571. if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1572.   rm -rf conftest*
  1573.   ac_cv_type_signal=void
  1574. else
  1575.   rm -rf conftest*
  1576.   ac_cv_type_signal=int
  1577. fi
  1578. rm -f conftest*
  1579.  
  1580. fi
  1581.  
  1582. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1583. cat >> confdefs.h <<EOF
  1584. #define RETSIGTYPE $ac_cv_type_signal
  1585. EOF
  1586.  
  1587.  
  1588. for ac_func in strerror random srandom strchr strrchr lockf flock \
  1589. strcasecmp strncasecmp \
  1590. strdup strcspn strspn strtoul memcpy strpbrk memset
  1591. do
  1592. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1593. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1594.   echo $ac_n "(cached) $ac_c" 1>&6
  1595. else
  1596.   cat > conftest.$ac_ext <<EOF
  1597. #line 1598 "configure"
  1598. #include "confdefs.h"
  1599. /* System header to define __stub macros and hopefully few prototypes,
  1600.     which can conflict with char $ac_func(); below.  */
  1601. #include <assert.h>
  1602. /* Override any gcc2 internal prototype to avoid an error.  */
  1603. char $ac_func();
  1604.  
  1605. int main() { return 0; }
  1606. int t() {
  1607.  
  1608. /* The GNU C library defines this for functions which it implements
  1609.     to always fail with ENOSYS.  Some functions are actually named
  1610.     something starting with __ and the normal name is an alias.  */
  1611. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1612. choke me
  1613. #else
  1614. $ac_func();
  1615. #endif
  1616.  
  1617. ; return 0; }
  1618. EOF
  1619. if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1620.   rm -rf conftest*
  1621.   eval "ac_cv_func_$ac_func=yes"
  1622. else
  1623.   rm -rf conftest*
  1624.   eval "ac_cv_func_$ac_func=no"
  1625. fi
  1626. rm -f conftest*
  1627.  
  1628. fi
  1629. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1630.   echo "$ac_t""yes" 1>&6
  1631.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1632.   cat >> confdefs.h <<EOF
  1633. #define $ac_tr_func 1
  1634. EOF
  1635.  
  1636. else
  1637.   echo "$ac_t""no" 1>&6
  1638. fi
  1639. done
  1640.  
  1641.  
  1642. for ac_func in utime utimes
  1643. do
  1644. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1645. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1646.   echo $ac_n "(cached) $ac_c" 1>&6
  1647. else
  1648.   cat > conftest.$ac_ext <<EOF
  1649. #line 1650 "configure"
  1650. #include "confdefs.h"
  1651. /* System header to define __stub macros and hopefully few prototypes,
  1652.     which can conflict with char $ac_func(); below.  */
  1653. #include <assert.h>
  1654. /* Override any gcc2 internal prototype to avoid an error.  */
  1655. char $ac_func();
  1656.  
  1657. int main() { return 0; }
  1658. int t() {
  1659.  
  1660. /* The GNU C library defines this for functions which it implements
  1661.     to always fail with ENOSYS.  Some functions are actually named
  1662.     something starting with __ and the normal name is an alias.  */
  1663. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1664. choke me
  1665. #else
  1666. $ac_func();
  1667. #endif
  1668.  
  1669. ; return 0; }
  1670. EOF
  1671. if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1672.   rm -rf conftest*
  1673.   eval "ac_cv_func_$ac_func=yes"
  1674. else
  1675.   rm -rf conftest*
  1676.   eval "ac_cv_func_$ac_func=no"
  1677. fi
  1678. rm -f conftest*
  1679.  
  1680. fi
  1681. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1682.   echo "$ac_t""yes" 1>&6
  1683.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1684.   cat >> confdefs.h <<EOF
  1685. #define $ac_tr_func 1
  1686. EOF
  1687.  break
  1688. else
  1689.   echo "$ac_t""no" 1>&6
  1690. fi
  1691. done
  1692.  
  1693. for ac_func in gettimeofday tzset
  1694. do
  1695. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1696. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1697.   echo $ac_n "(cached) $ac_c" 1>&6
  1698. else
  1699.   cat > conftest.$ac_ext <<EOF
  1700. #line 1701 "configure"
  1701. #include "confdefs.h"
  1702. /* System header to define __stub macros and hopefully few prototypes,
  1703.     which can conflict with char $ac_func(); below.  */
  1704. #include <assert.h>
  1705. /* Override any gcc2 internal prototype to avoid an error.  */
  1706. char $ac_func();
  1707.  
  1708. int main() { return 0; }
  1709. int t() {
  1710.  
  1711. /* The GNU C library defines this for functions which it implements
  1712.     to always fail with ENOSYS.  Some functions are actually named
  1713.     something starting with __ and the normal name is an alias.  */
  1714. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1715. choke me
  1716. #else
  1717. $ac_func();
  1718. #endif
  1719.  
  1720. ; return 0; }
  1721. EOF
  1722. if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1723.   rm -rf conftest*
  1724.   eval "ac_cv_func_$ac_func=yes"
  1725. else
  1726.   rm -rf conftest*
  1727.   eval "ac_cv_func_$ac_func=no"
  1728. fi
  1729. rm -f conftest*
  1730.  
  1731. fi
  1732. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1733.   echo "$ac_t""yes" 1>&6
  1734.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1735.   cat >> confdefs.h <<EOF
  1736. #define $ac_tr_func 1
  1737. EOF
  1738.  break
  1739. else
  1740.   echo "$ac_t""no" 1>&6
  1741. fi
  1742. done
  1743.  
  1744.  
  1745.  
  1746. host_os1=`echo $host_os | sed 's/\./_/g'`
  1747. host_os2=`echo $host_os | sed 's/^\([^.]*\)\..*$/\1/g'`
  1748. host_os3=`echo $host_os2 | sed 's/^\([^0-9]*\)[0-9]*$/\1/g'`
  1749. HOST_ID="-D$host_cpu -D$host_os1"
  1750. if [ $host_os1 != $host_os2 ] ; then
  1751.     HOST_ID="$HOST_ID -D$host_os2"
  1752. fi
  1753. if [ $host_os1 != $host_os3 ] && [ $host_os2 != $host_os3 ] ; then
  1754.     HOST_ID="$HOST_ID -D$host_os3"
  1755. fi
  1756.  
  1757. my_host_os=`echo $host_os1 $host_os2 $host_os3 | sort -u`
  1758. objs=`echo $srcdir/*.c | sed 's/\.c$/.o/' `
  1759. if [ "X$GCC" = "Xyes" ] ; then
  1760.  
  1761.     CFLAGS="$CFLAGS -O4"
  1762.     if [ "$host_cpu" = i486 ] ; then
  1763.         CFLAGS="$CFLAGS -m486"
  1764.     fi
  1765.     Wall=-Wall
  1766.     if [ "$host_os3" = sunos ] ; then
  1767.         Wall=""
  1768.     fi
  1769.     if [ "$host_os3" = ultrix ] ; then
  1770.         Wall=""
  1771.     fi
  1772.     if [ "$host_os3" = linux ] ; then
  1773.         CFLAGS="$CFLAGS -fno-strength-reduce"
  1774.     fi
  1775.     CFLAGS="$CFLAGS $Wall -fomit-frame-pointer"
  1776. fi
  1777.  
  1778. if [ $host_vendor = linux ] ; then
  1779.     CFLAGS="$CFLAGS -DUSE_XDF"
  1780. fi
  1781.  
  1782.  
  1783. if [ $host_vendor = att ] ; then
  1784.     CFLAGS="$CFLAGS -Datt"
  1785. fi
  1786.  
  1787. if [ $host_os3 = xenix ] ; then
  1788.     CFLAGS="$CFLAGS -M2e"
  1789.     LDFLAGS="$LDFLAGS -M2e -i -f 5000"
  1790. fi
  1791.  
  1792. if [ $host_os3 = hpux ] ; then
  1793.     LDFLAGS="$LDFLAGS -z"
  1794. fi
  1795.  
  1796. if [ $host_os2 = sysv4 ] ; then
  1797.     SHLIB="-lc -L/usr/ucblib -lucb"
  1798. else
  1799.     SHLIB=""
  1800. fi
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806. trap '' 1 2 15
  1807. cat > confcache <<\EOF
  1808. # This file is a shell script that caches the results of configure
  1809. # tests run on this system so they can be shared between configure
  1810. # scripts and configure runs.  It is not useful on other systems.
  1811. # If it contains results you don't want to keep, you may remove or edit it.
  1812. #
  1813. # By default, configure uses ./config.cache as the cache file,
  1814. # creating it if it does not exist already.  You can give configure
  1815. # the --cache-file=FILE option to use a different cache file; that is
  1816. # what configure does when it calls configure scripts in
  1817. # subdirectories, so they share the cache.
  1818. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1819. # config.status only pays attention to the cache file if you give it the
  1820. # --recheck option to rerun configure.
  1821. #
  1822. EOF
  1823. # Ultrix sh set writes to stderr and can't be redirected directly,
  1824. # and sets the high bit in the cache file unless we assign to the vars.
  1825. (set) 2>&1 |
  1826.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1827.   >> confcache
  1828. if cmp -s $cache_file confcache; then
  1829.   :
  1830. else
  1831.   if test -w $cache_file; then
  1832.     echo "updating cache $cache_file"
  1833.     cat confcache > $cache_file
  1834.   else
  1835.     echo "not updating unwritable cache $cache_file"
  1836.   fi
  1837. fi
  1838. rm -f confcache
  1839.  
  1840. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1841.  
  1842. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1843. # Let make expand exec_prefix.
  1844. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1845.  
  1846. # Any assignment to VPATH causes Sun make to only execute
  1847. # the first set of double-colon rules, so remove it if not needed.
  1848. # If there is a colon in the path, we need to keep it.
  1849. if test "x$srcdir" = x.; then
  1850.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1851. fi
  1852.  
  1853. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1854.  
  1855. DEFS=-DHAVE_CONFIG_H
  1856.  
  1857. # Without the "./", some shells look in PATH for config.status.
  1858. : ${CONFIG_STATUS=./config.status}
  1859.  
  1860. echo creating $CONFIG_STATUS
  1861. rm -f $CONFIG_STATUS
  1862. cat > $CONFIG_STATUS <<EOF
  1863. #! /bin/sh
  1864. # Generated automatically by configure.
  1865. # Run this file to recreate the current configuration.
  1866. # This directory was configured as follows,
  1867. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1868. #
  1869. # $0 $ac_configure_args
  1870. #
  1871. # Compiler output produced by configure, useful for debugging
  1872. # configure, is in ./config.log if it exists.
  1873.  
  1874. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1875. for ac_option
  1876. do
  1877.   case "\$ac_option" in
  1878.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1879.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1880.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1881.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1882.     echo "$CONFIG_STATUS generated by autoconf version 2.9"
  1883.     exit 0 ;;
  1884.   -help | --help | --hel | --he | --h)
  1885.     echo "\$ac_cs_usage"; exit 0 ;;
  1886.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1887.   esac
  1888. done
  1889.  
  1890. ac_given_srcdir=$srcdir
  1891. ac_given_INSTALL="$INSTALL"
  1892.  
  1893. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1894. EOF
  1895. cat >> $CONFIG_STATUS <<EOF
  1896.  
  1897. # Protect against being on the right side of a sed subst in config.status.
  1898. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1899.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1900. $ac_vpsub
  1901. $extrasub
  1902. s%@CFLAGS@%$CFLAGS%g
  1903. s%@CPPFLAGS@%$CPPFLAGS%g
  1904. s%@CXXFLAGS@%$CXXFLAGS%g
  1905. s%@DEFS@%$DEFS%g
  1906. s%@LDFLAGS@%$LDFLAGS%g
  1907. s%@LIBS@%$LIBS%g
  1908. s%@exec_prefix@%$exec_prefix%g
  1909. s%@prefix@%$prefix%g
  1910. s%@program_transform_name@%$program_transform_name%g
  1911. s%@bindir@%$bindir%g
  1912. s%@sbindir@%$sbindir%g
  1913. s%@libexecdir@%$libexecdir%g
  1914. s%@datadir@%$datadir%g
  1915. s%@sysconfdir@%$sysconfdir%g
  1916. s%@sharedstatedir@%$sharedstatedir%g
  1917. s%@localstatedir@%$localstatedir%g
  1918. s%@libdir@%$libdir%g
  1919. s%@includedir@%$includedir%g
  1920. s%@oldincludedir@%$oldincludedir%g
  1921. s%@infodir@%$infodir%g
  1922. s%@mandir@%$mandir%g
  1923. s%@CC@%$CC%g
  1924. s%@CPP@%$CPP%g
  1925. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1926. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1927. s%@LN_S@%$LN_S%g
  1928. s%@host@%$host%g
  1929. s%@host_alias@%$host_alias%g
  1930. s%@host_cpu@%$host_cpu%g
  1931. s%@host_vendor@%$host_vendor%g
  1932. s%@host_os@%$host_os%g
  1933. s%@target@%$target%g
  1934. s%@target_alias@%$target_alias%g
  1935. s%@target_cpu@%$target_cpu%g
  1936. s%@target_vendor@%$target_vendor%g
  1937. s%@target_os@%$target_os%g
  1938. s%@build@%$build%g
  1939. s%@build_alias@%$build_alias%g
  1940. s%@build_cpu@%$build_cpu%g
  1941. s%@build_vendor@%$build_vendor%g
  1942. s%@build_os@%$build_os%g
  1943. s%@SHLIB@%$SHLIB%g
  1944. s%@HOST_ID@%$HOST_ID%g
  1945.  
  1946. CEOF
  1947. EOF
  1948. cat >> $CONFIG_STATUS <<EOF
  1949.  
  1950. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1951. EOF
  1952. cat >> $CONFIG_STATUS <<\EOF
  1953. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1954.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1955.   case "$ac_file" in
  1956.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1957.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1958.   *) ac_file_in="${ac_file}.in" ;;
  1959.   esac
  1960.  
  1961.   # Adjust relative srcdir, etc. for subdirectories.
  1962.  
  1963.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1964.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1965.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1966.     # The file is in a subdirectory.
  1967.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1968.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1969.     # A "../" for each directory in $ac_dir_suffix.
  1970.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1971.   else
  1972.     ac_dir_suffix= ac_dots=
  1973.   fi
  1974.  
  1975.   case "$ac_given_srcdir" in
  1976.   .)  srcdir=.
  1977.       if test -z "$ac_dots"; then top_srcdir=.
  1978.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1979.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1980.   *) # Relative path.
  1981.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1982.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1983.   esac
  1984.  
  1985.   case "$ac_given_INSTALL" in
  1986.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1987.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1988.   esac
  1989.   echo creating "$ac_file"
  1990.   rm -f "$ac_file"
  1991.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1992.   case "$ac_file" in
  1993.   *Makefile*) ac_comsub="1i\\
  1994. # $configure_input" ;;
  1995.   *) ac_comsub= ;;
  1996.   esac
  1997.   sed -e "$ac_comsub
  1998. s%@configure_input@%$configure_input%g
  1999. s%@srcdir@%$srcdir%g
  2000. s%@top_srcdir@%$top_srcdir%g
  2001. s%@INSTALL@%$INSTALL%g
  2002. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2003. fi; done
  2004. rm -f conftest.subs
  2005.  
  2006. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2007. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2008. #
  2009. # ac_d sets the value in "#define NAME VALUE" lines.
  2010. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2011. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2012. ac_dC='\3'
  2013. ac_dD='%g'
  2014. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2015. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2016. ac_uB='\([     ]\)%\1#\2define\3'
  2017. ac_uC=' '
  2018. ac_uD='\4%g'
  2019. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2020. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2021. ac_eB='$%\1#\2define\3'
  2022. ac_eC=' '
  2023. ac_eD='%g'
  2024.  
  2025. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2026. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2027.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2028.   case "$ac_file" in
  2029.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2030.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2031.   *) ac_file_in="${ac_file}.in" ;;
  2032.   esac
  2033.  
  2034.   echo creating $ac_file
  2035.  
  2036.   rm -f conftest.frag conftest.in conftest.out
  2037.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2038.  
  2039. EOF
  2040.  
  2041. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2042. # the proper values into config.h.in to produce config.h.  And first:
  2043. # Protect against being on the right side of a sed subst in config.status.
  2044. # Protect against being in an unquoted here document in config.status.
  2045. rm -f conftest.vals
  2046. cat > conftest.hdr <<\EOF
  2047. s/[\\&%]/\\&/g
  2048. s%[\\$`]%\\&%g
  2049. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2050. s%ac_d%ac_u%gp
  2051. s%ac_u%ac_e%gp
  2052. EOF
  2053. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2054. rm -f conftest.hdr
  2055.  
  2056. # This sed command replaces #undef with comments.  This is necessary, for
  2057. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2058. # on some systems where configure will not decide to define it.
  2059. cat >> conftest.vals <<\EOF
  2060. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2061. EOF
  2062.  
  2063. # Break up conftest.vals because some shells have a limit on
  2064. # the size of here documents, and old seds have small limits too.
  2065. # Maximum number of lines to put in a single here document.
  2066. ac_max_here_lines=12
  2067.  
  2068. rm -f conftest.tail
  2069. while :
  2070. do
  2071.   ac_lines=`grep -c . conftest.vals`
  2072.   # grep -c gives empty output for an empty file on some AIX systems.
  2073.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2074.   # Write a limited-size here document to conftest.frag.
  2075.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2076.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2077.   echo 'CEOF
  2078.   sed -f conftest.frag conftest.in > conftest.out
  2079.   rm -f conftest.in
  2080.   mv conftest.out conftest.in
  2081. ' >> $CONFIG_STATUS
  2082.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2083.   rm -f conftest.vals
  2084.   mv conftest.tail conftest.vals
  2085. done
  2086. rm -f conftest.vals
  2087.  
  2088. cat >> $CONFIG_STATUS <<\EOF
  2089.   rm -f conftest.frag conftest.h
  2090.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2091.   cat conftest.in >> conftest.h
  2092.   rm -f conftest.in
  2093.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2094.     echo "$ac_file is unchanged"
  2095.     rm -f conftest.h
  2096.   else
  2097.     rm -f $ac_file
  2098.     mv conftest.h $ac_file
  2099.   fi
  2100. fi; done
  2101.  
  2102.  
  2103.  
  2104. exit 0
  2105. EOF
  2106. chmod +x $CONFIG_STATUS
  2107. rm -fr confdefs* $ac_clean_files
  2108. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2109.  
  2110.